package cn.iocoder.yudao.module.design.controller.admin.reform.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 项目整改单 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ReformBaseVO {

    @Schema(description = "项目id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3460")
    @NotNull(message = "项目id不能为空")
    private Long houseId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "名称不能为空")
    private String name;

    @Schema(description = "说明", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
//    @NotNull(message = "说明不能为空")
    private String description;

    @Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "13766")
    @NotNull(message = "价格不能为空")
    private Double price;

    @Schema(description = "数量，默认1", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数量，默认1不能为空")
    private Integer num;

    @Schema(description = "总价，价格*数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "14983")
    private BigDecimal totalPrice;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "状态不能为空")
    private String statusCd;

    @Schema(description = "签字确认", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
//    @NotNull(message = "签字确认不能为空")
    private String confirmUrl;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类型不能为空")
    private String reformType;

    @Schema(description = "确认人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "确认人不能为空")
    private Long confirmUser;

    @Schema(description = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
    private String creator;
}
